package com.matt.foundation.vo;




import java.util.Date;

import com.matt.domain.SaleFAQ;

import lombok.Data;

@Data
public class SalesFAQVo {
	private String id;
    private Integer state;
    private String question;
    private String answer;
    private String creator;
    private Date created;
    private String modifyed;

    public static SalesFAQVo of(SaleFAQ sw) {
    	SalesFAQVo vo = new SalesFAQVo();
 
    	vo.setId(sw.getId());
    	vo.setQuestion(sw.getQuestion());
    	vo.setAnswer(sw.getAnswer());
    	    	    	
        return vo;
    }
    
    public static SalesFAQVo self(SaleFAQ sw) {
    	SalesFAQVo vo = new SalesFAQVo();
 
    	vo.setId(sw.getId());
    	vo.setQuestion(sw.getQuestion());
    	vo.setAnswer(sw.getAnswer());
    	vo.setState(sw.getState());
    	vo.setCreated(sw.getCreated());
    	vo.setCreator(sw.getCreator());
    	vo.setModifyed(sw.getModifyed());
    	
        return vo;
    }
    
}
